import request from '@/utils/request'
// 进入素材管理,请求图片素材数据
export function reqPictures (params = {}) {
  return request({
    url: '/mp/v1_0/user/images',
    method: 'GET',
    headers: {
      'Content-Type': 'application/json'
    },
    params
  })
}
// 删除图片素材
export function reqDelPictures (id) {
  return request({
    url: `/mp/v1_0/user/images/${id}`,
    method: 'DELETE'
  })
}
// 收藏文章素材
export function reqCollPictures (id, status) {
  return request({
    url: `/mp/v1_0/user/images/${id}`,
    method: 'PUT',
    data: {
      collect: status
    }
  })
}
